// 登录
//登录
$(".dl-1").click(function(){
    var name=document.querySelector(".zh")
    
    let xhr = new XMLHttpRequest()
    xhr.open('get','./data/zc.php');
    xhr.send();
    xhr.onload= ()=>{
        let obj =JSON.parse(xhr.responseText)
        if(obj.code==0){
            location.href="./dlcg.html"
            setCookie("username",name.value)
            alert("登录成功")
        }
        else{alert("失败")}
    }
})

